{template header}
<div class="row-fluid">
    <div class="span12">
        <div class="span6">
            <table class="table table-striped">
                <thead>
                    <tr>
                        <td>已添加好友</td>
                    </tr>
                </thead>
                <tbody>
                    {loop $friendsList $k $v}
                    <tr>
                        <td>
                            <image src="{$v['header']}" width="30" height="30" />&nbsp;<a class="btn btn-link" href="?c=admin&a=friendsList&uid=$v['uid']" target="_blank">{$v['nickname']}</a>
                        </td>
                    </tr>
                    {/loop}
                </tbody>
            </table>
        </div>
        <div class="span6">
            <table class="table table-striped">
                <thead>
                    <tr>
                        <td>待验证好友</td>
                        <td></td>
                    </tr>
                </thead>
                <tbody>
                    {loop $newfriends $k $v}
                    <tr>
                        <td>
                            <image src="{$v['header']}" width="30" height="30" />&nbsp;<a class="btn btn-link" href="?c=admin&a=friendsList&uid=$v['uid']" target="_blank">{$v['nickname']}</a>
                        </td>
                        <td>
                            {if $v['status'] == 1}
                            <a class="btn btn-primary">等待验证</a>
                            {elseif $v['status'] == 3}<a class="btn btn-danger">待接受</a>
                            {elseif $v['status'] == 0}<a class="btn btn-inverse">已删除</a>
                            {else}{$v['status']}{/if}                            
                        </td>
                    </tr>
                    {/loop}
                </tbody>
            </table>
        </div>
    </div>
</div>
{template footer}
